package cn.jhz.learn.blog.dao.article;

import cn.jhz.learn.blog.po.article.BlogArticleSubfieldSubscribe;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BlogArticleSubfieldSubscribeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogArticleSubfieldSubscribe record);

    int insertSelective(BlogArticleSubfieldSubscribe record);

    BlogArticleSubfieldSubscribe selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogArticleSubfieldSubscribe record);

    int updateByPrimaryKey(BlogArticleSubfieldSubscribe record);

    /*自定义*/

    BlogArticleSubfieldSubscribe selectBySubfieldIdAndBlogId(@Param("subfield_id") Integer subfieldId,
                                                             @Param("blog_id") Integer blogId);
}